package com.zoffy.wmsbackend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zoffy.wmsbackend.common.RequestParam;
import com.zoffy.wmsbackend.model.dto.materialUsagePlan.MaterialUsagePlanDto;
import com.zoffy.wmsbackend.model.entity.MaterialUsagePlan;
import com.zoffy.wmsbackend.model.vo.materialUsagePlan.MaterialUsagePlanDetailsVo;
import com.zoffy.wmsbackend.model.vo.materialUsagePlan.MaterialUsagePlanVo;
import com.zoffy.wmsbackend.model.dto.materialUsagePlan.MaterialPlanAddDto;

public interface MaterialUsagePlanService extends IService<MaterialUsagePlan> {
    Page<MaterialUsagePlanVo> listMaterialUsagePlanVoByPage(RequestParam<MaterialUsagePlanDto> requestParam);
    Boolean addMaterialUsagePlan(MaterialPlanAddDto materialPlanAddDto);
    /**
     * 审批用料计划
     * @param id 用料计划的 ID
     * @return 审批结果
     */
    Boolean approval(Long id);

    /**
     * 根据 ID 获取用料计划详情
     * @param id 用料计划的 ID
     * @return 用料计划详情视图对象
     */
    MaterialUsagePlanDetailsVo getDetailsById(Long id);
}